/**
 * 
 */
package com.yeook.ymax.xml.factory;

import com.yeook.ymax.xml.YooekXmlBean;
import com.yeook.ymax.xml.YooekXmlHandler;

/**
 * 
 * 解析<wallpapersCount>500</wallpapersCount>
 * 
 * @author wangbo
 * 
 */
public class WallpapersCountHandler implements YooekXmlHandler {
	private YooekXmlBean xml;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.yeook.android.xml.YooekXmlHandler#createELHandler(java.lang.Object)
	 */
	@Override
	public void createELHandler(YooekXmlBean obj) {
		xml = (YooekXmlBean) obj;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.yeook.android.xml.YooekXmlHandler#handler(java.lang.String)
	 */
	@Override
	public void handler(String data) {
		xml.setWallpapersCount(Integer.parseInt(data));
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.yeook.android.xml.YooekXmlHandler#closeELHandler()
	 */
	@Override
	public void closeELHandler() {

	}

}
